@using ApiGenerator
@using ApiGenerator.Domain.Code.HighLevel.Methods
@using HighLevelModel = ApiGenerator.Domain.Code.HighLevel.Methods.HighLevelModel
@inherits CodeTemplatePage<HighLevelModel>
@{
	HighLevelModel model = Model;
	var fluentPath = "HighLevel/Client/FluentSyntax/FluentMethodHeader.cshtml";
	var initializerPath = "HighLevel/Client/InitializerSyntax/InitializerMethodHeader.cshtml";
}

@{ await IncludeAsync("HighLevel/Client/MethodXmlDocs.cshtml", model.Fluent); }
@{ await IncludeAsync(fluentPath, new FluentSyntaxView(model.Fluent, async: false)); };
@{ await IncludeAsync("HighLevel/Client/MethodXmlDocs.cshtml", model.Fluent); }
@{ await IncludeAsync(fluentPath, new FluentSyntaxView(model.Fluent, async: true)); };

@if (model.FluentBound != null)
{
<text>
	@{ await IncludeAsync("HighLevel/Client/MethodXmlDocs.cshtml", model.FluentBound); }
	@{ await IncludeAsync(fluentPath, new FluentSyntaxView(model.FluentBound, async: false)); };
	@{ await IncludeAsync("HighLevel/Client/MethodXmlDocs.cshtml", model.FluentBound); }
	@{ await IncludeAsync(fluentPath, new FluentSyntaxView(model.FluentBound, async: true)); };
</text>
}
@{ await IncludeAsync("HighLevel/Client/MethodXmlDocs.cshtml", model.Initializer); }
@{ await IncludeAsync(initializerPath, new InitializerSyntaxView(model.Initializer, async: false)); };
@{ await IncludeAsync("HighLevel/Client/MethodXmlDocs.cshtml", model.Initializer); }
@{ await IncludeAsync(initializerPath, new InitializerSyntaxView(model.Initializer, async: true)); };

